package com.service.impl;

import com.dao.impl.CommentDaoImpl;
import com.dao.intf.CommentDao;
import com.entity.Comment;
import com.service.intf.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {
    CommentDao commentDao=new CommentDaoImpl();
    @Override
    public List<Comment> queryCommentByBlogId(Integer blogId) {
        return commentDao.queryCommentByBlogId(blogId);
    }

    @Override
    public void addComment(Comment comment) {
       commentDao.addComment(comment);
    }

    @Override
    public void deleteComment(Integer commentId) {
        commentDao.deleteComment(commentId);
    }
}
